<?php
/**
 * @Author: qi
 * @Email:   905766491@qq.com
 * @Date:   2017-02-09 18:05:22
 * @Last Modified by:   qi
 * @Last Modified time: 2017-02-10 15:08:13
 */
namespace frontend\controllers;
use Yii;
use yii\web\Controller;
use frontend\models\Test;
class IndexController extends Controller{

    public function actionIndex(){
        //echo "index/index";
        $model = new Test();   
        $data = $model->find()->one();
        $this->layout="layout";
        return $this->render("index",array('data'=>$data));

    }

}